$fontSize_20: 1.1vw;
$fontSize_18: 1vw;
$fontSize_16: 0.9vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.2vw;
$fontSize_36: 1.8vw;
$width: 82.292vw;

.header {
  position: fixed;
  left: 5%;
  top: 2vw;
  z-index: 100;
  width: 90%;
  transition: all 600ms;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .l{
    display: flex;
    align-items: center;
    .logo{
      img{
        display: block;
      }
    }
    .t{
      font-size: 14px;
      margin: 18px 0 0 15px;
      color: #666;
    }
  }
  .r{
    display: flex;
    align-items: center;
    .icons{
      display: flex;
      a{
        margin: 0 10px;
      }
    }
    .btns{
      display: flex;
      margin: 0 3vw;
      a{
        background: #EBEBEB;
        display: inline-block;
        font-size: $fontSize_18;
        color:#333;
        padding: 10px 15px;
      }
      a:last-child{
        background: #DA353B;
        color:#fff;
      }
    }
    .lan{
      a{
        color: #333;
        font-size: $fontSize_18;
      }
    }
    .pc_menu{
      margin-left: 3vw;
      cursor: pointer;
      span{
        display: block;
        height:2px;
        background: #333;
        width: 57px;
      }
      span:nth-child(2){
        margin-top: 10px;
      }
    }
  }
}

// .hasBg {
//   box-shadow: 0 0 10px rgba(0, 0, 0, .1);
// }


.pheader {
  display: none;
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  left: 0;
  z-index: 1002;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);

  .menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;

    a {
      margin-left: 20px;
      transform: translateY(2px);

      svg {
        width: 140px;
        object-fit: contain;
      }
    }

    .navbox {
      margin-right: 20px;

      .line {
        width: 30px;
        height: 1px;
        background-color: #000;
        margin: 8px 0;
        -webkit-transition: all .6s;
        transition: all .6s;
      }
    }

    .activeBox {
      .line:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
      }

      .line:nth-child(2) {
        transform: translateX(30px);
        opacity: 0;
      }

      .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
      }
    }
  }
}

.menuList {
  position: fixed;
  left: 0;
  top: 59px;
  width: 100%;
  z-index: 1001;
  background: white;
  display: none;
  height: calc(100vh - 59px);

  .lan {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;

    a {
      color: #646464;
      margin-left: 10px;
    }

    .active {
      font-weight: bolder;
      color: #000000;
    }
  }

  .item {
    //background: rgba(255,255,255,.8);
    padding: 1rem;
    background-color: #ededed;
    border-bottom: 1px solid #dadada;

    a {
      color: #000;
      display: block;
      position: relative;
      text-transform: uppercase;

      img {
        position: absolute;
        right: 0;
        width: 20px;
        transition: all 600ms;
        top: 5px;
      }

      .icon2 {
        position: static;
        width: auto;
        margin-right: 10px;
      }

      .rotate {
        transform: rotate(90deg);
      }
    }

    .tb {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      a {
        width: 100%;
        display: block;
      }

      img {
        width: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 600ms;
      }

      .rotate {
        transform: translateY(-50%) rotate(90deg);
      }
    }

    .types_top {
      display: none;

      a {
        font-size: 14px;
        margin-top: 15px;
      }
    }
  }
}

.activeList {
  transform: translateY(0);
}

.foot {
  background: #212121;
  text-align: center;
  padding: 3vw 5vw 3vw 5vw;
  position: relative;
  #goTop{
    position: absolute;
    right: 10%;
    top:40%;
    transform: translateY(-50%);
    cursor: pointer;
    p{
      color: #FFF;
      font-size: $fontSize_16;
    }
    .line{
      width: 3vw;
      height: 1px;
      background-color: #fff;
      margin: 5px 0;
    }
  }
  .links {
    display: flex;
    justify-content: center;
    margin: 2vw 0;

    a {
      color: white;
      font-size: $fontSize_16;
      margin: 0 1.5vw;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .icons {
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      margin: 0 1vw;
    }
  }

  .address {
    color: #FFF;
    font-size: $fontSize_18;
    margin: 2vw 0;
  }

  .email {
    color: #FFF;
    font-size: $fontSize_18;
  }

  .phones {
    display: flex;
    justify-content: center;
    margin: 2vw 0;

    p {
      color: #FFF;
      font-size: $fontSize_18;
      margin: 0 2vw;
    }
  }

  .links2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    a {
      color: #FFF;
      font-size: $fontSize_18;
      margin: 0 2vw 3vw 2vw;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2vw 5% 0 5%;

    .l {
      color: #FFF;
      font-size: $fontSize_18;
      display: flex;
      align-items: center;

      a {
        color: #FFF;
      }
    }

    .r {
      a {
        color: #FFF;
        font-size: $fontSize_18;
      }
    }
  }
}



@media screen and (max-width: 1024px) {
  .header {
    display: none;
  }

  .pheader {
    display: flex;
  }

  .foot {
    padding: 30px 15px;

    #goTop{
      top:30px;
      transform: translateY(0);
      p{
        font-size: 14px;
      }
    }
    .links {
      display: none;
    }

    .icons {
      align-items: center;
      margin-top: 15px;

      a {
        margin: 0 10px;
      }
    }

    .address,
    .email {
      font-size: 14px;
      line-height: 1.8;
      margin: 0;
    }

    .phones {
      justify-content: space-between;

      p {
        font-size: 14px;
        margin: 0;
      }
    }

    .links2 {
      a {
        font-size: 14px;
      }
    }

    .copyright {
      margin: 0;
      flex-direction: column;
      text-align: center;
      line-height: 1.6;

      .l {
        font-size: 14px;
        flex-direction: column;
      }

      .r {
        a {
          font-size: 14px;
        }
      }
    }
  }
}